package org.example.clouddemo.order.feign;

import org.example.clouddemo.bean.common.Param.UserAppVo;
import org.example.common.response.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 通过简单的接口定义实现与User服务间通信
 */
@FeignClient(value = "service-user", path = "/api/app/user") // value:指定目标服务的注册名 path:公共路径前缀
public interface UserFeignClient {
    @PostMapping("getInfo")
    ApiResult<UserAppVo> getInfo();
    @PostMapping("update")
    ApiResult<Integer> update(UserAppVo user);
}